 @echo off
set builder=%windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
set type=Release
set outputPath=
set sln=TSharp.Core.Repository.sln

if "%outputPath%" NEQ "" (
set "outputPath=%outputPath:\=\\%" 
)
echo Building  %sln% start, pls wait minute! 
if "%outputPath%" NEQ "" (
%builder% /t:Rebuild %sln% /p:OutDir="%outputPath%\\" /p:WebProjectOutputDir="%outputPath%" /p:Confguration=%type% /clp:performanceSummary; /m >Common.Logging.Build.log 
) else (
%builder% /t:Rebuild %sln% /p:Confguration=%type% /clp:performanceSummary; /m >Common.Logging.Build.log 
)
:: /p:OutDir="%outputPath%\\"
echo Building %sln% Complete! 
 
::pause